import { Config, TabBar } from "@tarojs/taro";
import { pages } from "./router/config";

const tabBar: TabBar = {
  color: "#666",
  selectedColor: "#666",
  borderStyle: "white",
  list: [
    {
      pagePath: "pages/disclosure/index",
      iconPath: "./asset/imgs/tab-01.png",
      selectedIconPath: "./asset/imgs/tab-01-select.png",
      text: "爆料",
    },
    {
      pagePath: "pages/inquire/index",
      iconPath: "./asset/imgs/tab-02.png",
      selectedIconPath: "./asset/imgs/tab-02-select.png",
      text: "薪资查询",
    },
    {
      pagePath: "pages/user/index",
      iconPath: "./asset/imgs/tab-03.png",
      selectedIconPath: "./asset/imgs/tab-03-select.png",
      text: "我的",
    },
  ],
};

const config: Config = {
  pages: pages,
  tabBar,
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },
  /**切换页面动画 */ animation: false,
};

export default defineAppConfig(config);
